import Layout from '@/layout/index'

export default [
  {
    path: '/redirect/:path(.*)',
    component: () => import ('@/views/redirect/index'),
    hidden: true
  },
  {
    path: '/login',
    name: 'Login',
    hidden: true,
    component: () => import('@/views/login')
  },
  {
    path: '/',
    component: Layout,
    redirect: '/dashboard',
    children: [
      {
        path: 'dashboard',
        name: 'Dashboard',
        meta: { title: '首页', icon: 'view-dashboard' },
        component: () => import('@/views/dashboard')
      }
    ]
  }
]

export const NotFound = {
  path: '*',
  name: 'NotFound',
  hidden: true,
  component: () => import('@/views/not_found')
}
